function e(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}

function t() {
    wx.showModal({
        title: "请先登录",
        content: "接下来的操作需要您登录后才能继续",
        confirmText: "去登录",
        success: function(e) {
            if (e.confirm) {
                var t = getApp().globalData, o = t.app, i = t.appid;
                wx.navigateTo({
                    url: "/public/pages/verify/verify?app=" + o + "&appid=" + i
                });
            }
        }
    });
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.showLoginTipModal = t, exports.default = function(e) {
    return e.code === o.default.TOKEN_INVALID ? (t(), new i.default(function() {})) : i.default.resolve(e);
};

var o = e(require("./api-code.js")), i = e(require("./promise.js"));